<?php
namespace app\admin\controller;

use app\admin\controller\system\BaseController;

class IndexController extends BaseController
{
    public function index() {
        $data = [
            'a' => 'aaaaaddd'
        ];
        return $this->fetch($data);
    }

    private function getPrivateKey($appId)
    {
        $filePath = dirname(__FILE__) . '/resources/fixture/privateKey.json';
        $stream = fopen($filePath, 'r');
        fwrite($stream, '$filePath');
        $result = json_decode(stream_get_contents($stream));
        return $result->$appId;
    }


    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
}
